﻿#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using BreakOutBattles.Game.Physics;
using Microsoft.Xna.Framework.Graphics;
using BreakOutBattles.Sound;
#endregion

namespace BreakOutBattles.Game.Items
{
    /// <summary>
    /// A Wall is an invisible collidable-wall used to build the borders that covers the player area of the game.
    /// </summary>
    public class Wall : GameItem, ISolidObject
    {
        public Wall(Rectangle dimension)
            : base()
        {
            collisionRect = dimension;
        }

        public override void Reset()
        { }

        public override void Draw(SpriteBatch spriteBatch)
        { }


        #region ISolidObject Members
        public Rectangle CollisionRect
        {
            get
            {
                return collisionRect;
            }
            set
            {
                collisionRect = value;
            }
        }

        public bool OnMotion
        {
            get
            {
                return false;
            }
        }

        public void RegisterCollision()
        {
            SoundManager.PlayEffect(SoundEffects.PADDLE_HIT);
        }
        #endregion
    }
}
